package cn.dliyy.warehouse.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import cn.dliyy.base.bean.IdEntity;

@Component
@Entity
@Table
public class BReanson extends IdEntity {

	private static final long serialVersionUID = 1L;
	@Column
	@NotEmpty
	@Length(max = 45)
	private String name;
	@Column
	private String companyid;
	@Column
	private String note;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}
